package com.zxy.base.util;

import com.zxy.base.dto.Result;

public class ResultUtil {


    public static <T> Result<T> success(T data){
        return new Result<T>(200,"success", data);
    }

    public static  Result error(String msg){
        return new Result(500,msg, null);
    }
}
